package com.byx.chatserver.entity;

/**
 * FileType
 *
 * @author Superb
 * @date 2021/4/6 19:52
 */
public enum FileType {
    /**
     * 图片，文件，音频，视频，头像单独保存
     */
    IMAGE(100,"image"),
    AUDIO(200,"audio"),
    VIDEO(300,"video"),
    AVATAR(400,"avatar"),
    FILE(500,"file");

    final int code;
    String name;

    FileType(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
